-- GENERATED SPELL FOR [Mudsprocket Bruiser] --


function spell0_23636(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23636', 5252, 1)
end

function spell1_23636(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23636', 646, 1)
end

function Sorts_23636(pUnit, Event)
local choix_sorts_23636 = math.random(0, 1)
if choix_sorts_23636 == 0 then
pUnit:RegisterEvent('spell0_23636', 1, 1)
end
if choix_sorts_23636 == 1 then
pUnit:RegisterEvent('spell1_23636', 1, 1)
end
end

function mob23636_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23636', math.random(1500, 3000), 1)
end

function mob23636_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23636_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23636_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23636, 1, 'mob23636_Action')
RegisterUnitEvent(23636, 2, 'mob23636_Leave')
RegisterUnitEvent(23636, 3, 'mob23636_Kill')
RegisterUnitEvent(23636, 4, 'mob23636_Die')
